﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RentAWorker.Business.Interfaces;
using RentAWorker.Business.DTO;
using RentAWorker.Desktop.Entities;

namespace Services
{
    public class DummyCustomerManagementService : IManageCustomerService, ICustomerService
    {
        public Customer[] GetCustomers(string nameSearchString)
        {
            var result = new List<Customer>();

            for (int i = 1; i < 15; i++)
            {
                Customer cust = new Customer()
                {
                    CustomerID = i,
                    Name = String.Format("{0} {1}", nameSearchString, i)
                };
                result.Add(cust);
            }

            return result.ToArray();
        }

        public void UpdateCustomer(Customer customer)
        {
        }

        public void DeleteCustomer(int customerId)
        {
        }

        public int RegisterNewCustomer(Guid membershipId, string companyName)
        {
            return 0;
        }

        public Customer GetCustomer(int id)
        {
            return new Customer()
            {
                CustomerID = id,
                Name = String.Format("{0} {1}", "Customer", id)
            };
        }

        public int GetCustomerForUser(Guid membershipId)
        {
            return 0;
        }
    }
}
